<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>新建角色</title>
  </head>
  <body>
 	<form action="${ctx}/admin/role/save" method="post" class="form-horizontal" role="form" id="form">
 		<div class="form-group  form-inline">
		    <label class="col-md-4 control-label">角色名：</label>
		    <div class="col-md-4">
		    <input type="hidden" value="${bean.id}" name="id"/>
		      <input name="roleName" class="form-control" value="${bean.roleName}"
		      <c:if test="${bean.id!=null}">disabled</c:if>
		       datatype="s3-12" placeholder="请输入角色名"/>
		    </div>
	  	</div>
 		<div class="form-group  form-inline">
		    <label class="col-md-4 control-label">code：</label>
		    <div class="col-md-4">
		      <input name="code" class="form-control" value="${bean.code}"
		      <c:if test="${bean.id!=null}">disabled</c:if>
		       datatype="s3-12" placeholder="请输入code"/>
		    </div>
	  	</div>
	  	<div class="form-group  form-inline">
		    <label class="col-md-4 control-label">是否可用：</label>
		    <div class="col-md-4">
		      	<input type="radio" name="usable" value="0" checked="checked">不可用
 				<input type="radio" name="usable" value="1" <c:if test='${bean.usable==1}'>checked="checked"</c:if>>可用
		    </div>
	  	</div>
	  	<div class="form-group">
	   	<div class="col-md-8 text-right">
	  		<input type="submit" class="btn btn-primary" value="保存"></input>
	  	</div>
	  </div>
 	</form>
 	<script type="text/javascript">
 	$(function(){
		$("#form").Validform({
			tiptype:4
			})
		});
	</script>
  </body>
</html>
